<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet" />
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <title>aos 演示</title>
    <style>
      body {
        margin: 0;
      }

      .box {
        margin: 0 auto;
        display: flex;
        flex-direction: row;
      }

      .navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        width: 360px;
        height: 100vh;
        background-color: grey;
        padding-top: 30px;
      }

      .header {
        width: 100%;
        height: 10vh;
        background-color: aqua;
      }

      .bottom {
        width: 100%;
        height: 10vh;
        background-color: aqua;
      }

      .site-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 0.5px solid white;
        background-color: white;
      }
    </style>
  </head>

  <body>
    <div class="box">
      <div data-aos="fade-right" class="navbar">
        <div data-aos="fade-left" class="site-icon"></div>
      </div>
      <div data-aos="fade-top" class="header"></div>
    </div>
  </body>

  <script>
    document.onreadystatechange = () => {
      //是否加载完毕
      if (document.readyState == "complete") {
        AOS.init();
      }
    };
  </script>
</html>
